﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace download
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (TextBox1.Text.ToString().Equals("download") && TextBox2.Text.ToString().Equals("download"))
            {
                Session["islogin"] = "1";
                Response.Redirect("index.aspx");
            }
            else {
                Response.Write("用户名密码错误");
            }
        }
    }
}